﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Winz.FoeBot
{
    public class MapPoint
    {
        public float x;
        public float y;

        public MapPoint(float x, float y)
        {
            this.x = x;
            this.y = y;
        }

        public Point toBrowserPoint()
        {
            Point p = new Point();

            p.X = (int)(Bot.settings.originMapPoint.X
                + (x + 1 - y) * Bot.settings.xDelta);

            p.Y = (int)(Bot.settings.originMapPoint.Y
                + (x + 1 + y) * Bot.settings.yDelta);

            return p;
        }
    }

}
